package com.basej.mp.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

public enum UserStatus {
    NORMAL(1,"正常"),
    FREZZE(2,"冻结")
    ;

    @EnumValue  //对应数据库字段字段类型
    private Integer value;

    @JsonValue  //返回接口显示的值，不定义的话会返回枚举值
    private String desc;

    UserStatus(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }
}
